package src.字符串转换大小写;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liudingding
 * @ClassName Solution
 * @description
 * @date 2021/4/14 7:37 下午
 */
public class Solution {

    public List<String> convert(String strings){
        List<String> list = new ArrayList<>();
        char[] chars = strings.toCharArray();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < chars.length; i++) {
            char temp = chars[i];
            int index = Integer.parseInt(String.valueOf(temp));
            if (Character.isDigit(index)){
                continue;
            }
            if (Character.isUpperCase(temp)){
                String s = String.valueOf(temp).toLowerCase();
            }



            list.add(strings);
        }
        return new ArrayList<>();
    }

    @Test
    public void test(){
        String strings = "a1b2";
//        convert(strings);
        boolean digit = Character.isDigit(-1);
//        System.out.println(digit);
        System.out.println(Character.isUpperCase('q'));
        strings.toLowerCase();
    }
}
